package com.tarena.shoot;


import java.util.Arrays;

public class ArraysCopyTest {
	public static void main(String[] args) {
		int[] in = new int[] {5,8,9,10,1};
//		for(int i=0;i<in.length;i++) {
//        	System.out.println(in[i]);
//        }
		int[] in2= new int[] {3,1,3} ;
		
		System.out.println("-----------------------");
		
		in =Arrays.copyOf(in2, in2.length);
//		System.out.println(in[0]);
//		System.out.println(in[1]);
//		System.out.println(in[2]);
        for(int i=0;i<in.length;i++) {
        	System.out.println(in[i]);
        }
		
		
	}
}
